<?php
/**
 * Created by PhpStorm.
 * User: KHACHUNG
 * Date: 4/4/14
 * Time: 9:32 AM
 */
class Bomon extends AppModel{
    var $name='Bomon';
    var $hasAndBelongsToMany=array(
        'Monhoc'=>array(
            'className'=>'Monhoc',
            'joinTable'=>'bomons_monhocs',
            'foreignKey'=>'bomon_id',
            'associationForeignKey'=>'monhoc_id',
            'unique'=>true
        )
    );
    var $belongsTo=array(
        'Khoa'=>array(
            'className'=>'Khoa',
            'foreignKey'=>'khoas_id'
        )
    );

}